﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ec="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    x:Class="Day1.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
    <StackPanel x:Name="myStackPanel">
        <TextBlock Text="Demo Stack Panel"
                   FontSize="40"
                   />
        <Button x:Name="bnt01" 
                Content="Click Me" 
                Click="bnt01_Click" />
        <Button x:Name="bnt02" 
                Content="Say Hello"
                Click="bnt02_Click"
                />
        <Button x:Name="bnt03"
                Content="Say Goodbye" 
                Click="bnt03_Click" />
        <TextBox x:Name="txt01" 
                 Text="My Name"/>
        <Button x:Name="bnt04"
                Content="Dispaly My Name"
                Click="bnt04_Click"
                />
        <Button x:Name="bntAdd"
                Content="Add Button"
                Click="bntAdd_Click"
                
                />
        <Button x:Name="bntDemoGrid"
                Content="Demo Grid"
                Click="bntDemoGrid_Click"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Stretch"
                />
        <Button x:Name="bntDemoCanvas"
                Content="Demo Canvas"
                Click="bntDemoCanvas_Click"
                />
        <Button Content="Open Sample Canvas">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="Click">
        			<ec:NavigateToPageAction TargetPage="/SampleCanvas.xaml"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </Button>
    </StackPanel>
    
</phone:PhoneApplicationPage>